package com.example.smartplay.mapper;

import com.example.smartplay.entity.Club;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 
 * @since 2024-07-11
 */
@Mapper
public interface ClubMapper extends BaseMapper<Club> {
    @Select("select * from club where student_id = #{studentId}")
    Club selectByStudentId(Integer studentId);


    List<Club> selectClubWithStudentName(Integer clubId,Integer pageNum, Integer pageSize);

    Integer countClubs();
}
